/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model.ReportTypes;

import functions.Dogy;

/**
 *
 * @author JArik
 */
public class VisitOverallReport {

    private double drugsTotalSell=0,
                   operTotalSell=0,
                   drugsTotalBuy=0,
                   operTotalBuy=0,
                   visitTotalPrice=0,
                   visitOtherTotalPrice=0;

    public double getVisitOtherTotalPrice() {
        return Dogy.roundPrice(visitOtherTotalPrice);
    }

    public void setVisitOtherTotalPrice(double visitOtherTotalPrice) {
        this.visitOtherTotalPrice = visitOtherTotalPrice;
    }

    public double getVisitTotalPrice() {
        return Dogy.roundPrice(visitTotalPrice);
    }

    public void setVisitTotalPrice(double visitTotalPrice) {
        this.visitTotalPrice = visitTotalPrice;
    }

    public double getDrugsTotalBuy() {
        return Dogy.roundPrice(drugsTotalBuy);
    }

    public void setDrugsTotalBuy(double drugsTotalBuy) {
        this.drugsTotalBuy = drugsTotalBuy;
    }

    public double getDrugsTotalSell() {
        return Dogy.roundPrice(drugsTotalSell);
    }

    public void setDrugsTotalSell(double drugsTotalSell) {
        this.drugsTotalSell = drugsTotalSell;
    }

    public double getOperTotalBuy() {
        return Dogy.roundPrice(operTotalBuy);
    }

    public void setOperTotalBuy(double operTotalBuy) {
        this.operTotalBuy = operTotalBuy;
    }

    public double getOperTotalSell() {
        return Dogy.roundPrice(operTotalSell);
    }

    public void setOperTotalSell(double operTotalSell) {
        this.operTotalSell = operTotalSell;
    }
    public double getDrugProfit()
    {
        return Dogy.roundPrice(drugsTotalSell - drugsTotalBuy);
    }
    public double getOperProfit()
    {
        return Dogy.roundPrice(operTotalSell - operTotalBuy);
    }

    public double getTotalBuy()
    {
        return Dogy.roundPrice(drugsTotalBuy + operTotalBuy);
    }
    public double getTotalSell()
    {
        return Dogy.roundPrice(drugsTotalSell + operTotalSell + visitTotalPrice + visitOtherTotalPrice);
    }

    public double getTotalProfit()
    {
        return Dogy.roundPrice(getDrugProfit() + getOperProfit() + visitTotalPrice + visitOtherTotalPrice);
    }
}
